import { get, post } from '@/utils/request'

// 职位列表 专场职位
export const ssSessionList = (query) => {
  return get('/en/ssSession/getJobList', query)
}
// 职位管理列表
export const jobList = (query) => {
  return get('/en/opJob/getJobList', query)
}

export const copy = (query) => {
  return get('/en/opJob/copy', query)
}

export const add = (query) => {
  return post('/en/opJob/add', query)
}
export const edit = (query) => {
  return post('/en/opJob/editJob', query)
}
export const publishOrClose = (query) => {
  return get('/en/opJob/publishOrClose', query)
}
export const del = (query) => {
  return get('/en/opJob/deleteJob', query)
}
// 刷新职位
export const refreshNo = (query) => {
  return post('/en/opJob/refreshNo', query)
}

// 批次列表
export const listBatch = (query) => {
  return get('/en/opBatch/list', query)
}

// 查询一条
export const oneBatch = (query) => {
  return get('/en/opBatch/queryById', query)
}
// 新增批次
export const addBatch = (query) => {
  return post('/en/opBatch/add', query)
}

// 修改批次
export const editBatch = (query) => {
  return post('/en/opBatch/edit', query)
}
// 删除批次
export const delBatch = (query) => {
  return get('/en/opBatch/delete', query)
}

// 过滤条件
export const opFilterAdd = (query) => {
  return post('/en/opFilter/add', query)
}
// 修改过滤条件
export const opFilterEdit = (query) => {
  return post('/en/opFilter/edit', query)
}
// 根据id查询过滤条件
export const opFilterOne = (query) => {
  return get('/en/opFilter/queryById', query)
}


